// 银行卡创建请求参数
export interface CardCreateRequest {
  pid: string;           // 客户身份证号
  depositId: number;     // 存款产品ID
  currency: string;      // 币种，默认RMB
  openMoney: number;     // 开户金额
}

// 银行卡创建响应
export interface CardCreateResponse {
  code: number;
  message: string;
  data: {
    cardId: string;
    message: string;
  };
}

// 错误响应
export interface ErrorResponse {
  code: number;
  message: string;
}

// 客户信息
export interface Customer {
  user_id: string;
  user_name: string;
  pid: string;
  phone: string;
  email: string;
  address: string;
  create_time: string;
}

// 存款产品信息
export interface DepositProduct {
  deposit_id: number;
  deposit_name: string;
  description: string;
  term_years?: number;
}

// 银行卡信息
export interface BankCard {
  card_id: string;
  user_id: string;
  user_name: string;
  currency: string;
  open_money: number;
  balance: number;
  is_report_loss: number;
  open_date: string;
  card_type: string;
  status: string;
  loss_reason?: string;
  loss_date?: string;
}

export type DepositVO = {
  depositId?: number;
  depositName?: string;
  description?: string;
  termYears?: number;
  createTime?: string;
  updateTime?: string;
  isDeleted?: number;
};

export type DashboardStatsVO = {
  totalUsers?: number;
  todayTransactions?: number;
  systemStatus?: string;
};

export type BaseResponse<T> = {
  code?: number;
  data?: T;
  msg?: string;
}; 